﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace myClient
{
    public partial class frmLogin : Form
    {
        public string User = "";
        public string Pass = "";

        public frmLogin()
        {
            InitializeComponent();
        }

        private void btnLogin_Click(object sender, EventArgs e)
        {
            if (!cbUser.Text.Trim().Equals("") && !tbPass.Text.Trim().Equals(""))
            {
                User = cbUser.Text.Trim();
                Pass = tbPass.Text.Trim();
                this.DialogResult = DialogResult.OK;
            }
            else
                MessageBox.Show("Please input user and pass");
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }
    }
}
